using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class IphoneRegResponse : GeneratedMessageLite<IphoneRegResponse, IphoneRegResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<IphoneRegResponse, IphoneRegResponse.Builder>
		{
			private bool resultIsReadOnly;
			private IphoneRegResponse result;
			protected override IphoneRegResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override IphoneRegResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override IphoneRegResponse DefaultInstanceForType
			{
				get
				{
					return IphoneRegResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public Builder()
			{
				this.result = IphoneRegResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(IphoneRegResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private IphoneRegResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					IphoneRegResponse other = this.result;
					this.result = new IphoneRegResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override IphoneRegResponse.Builder Clear()
			{
				this.result = IphoneRegResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override IphoneRegResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new IphoneRegResponse.Builder(this.result);
				}
				return new IphoneRegResponse.Builder().MergeFrom(this.result);
			}
			public override IphoneRegResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override IphoneRegResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is IphoneRegResponse)
				{
					return this.MergeFrom((IphoneRegResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override IphoneRegResponse.Builder MergeFrom(IphoneRegResponse other)
			{
				return this;
			}
			public override IphoneRegResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override IphoneRegResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(IphoneRegResponse._iphoneRegResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = IphoneRegResponse._iphoneRegResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						BaseResponse.Builder builder = BaseResponse.CreateBuilder();
						if (this.result.hasBaseResponse)
						{
							builder.MergeFrom(this.BaseResponse);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.BaseResponse = builder.BuildPartial();
					}
				}
				return this;
			}
			public IphoneRegResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public IphoneRegResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public IphoneRegResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public IphoneRegResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		private static readonly IphoneRegResponse defaultInstance;
		private static readonly string[] _iphoneRegResponseFieldNames;
		private static readonly uint[] _iphoneRegResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private int memoizedSerializedSize = -1;
		public static IphoneRegResponse DefaultInstance
		{
			get
			{
				return IphoneRegResponse.defaultInstance;
			}
		}
		public override IphoneRegResponse DefaultInstanceForType
		{
			get
			{
				return IphoneRegResponse.DefaultInstance;
			}
		}
		protected override IphoneRegResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseResponse && this.BaseResponse.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private IphoneRegResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] iphoneRegResponseFieldNames = IphoneRegResponse._iphoneRegResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, iphoneRegResponseFieldNames[0], this.BaseResponse);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			IphoneRegResponse iphoneRegResponse = value as IphoneRegResponse;
			return iphoneRegResponse != null && (this.hasBaseResponse == iphoneRegResponse.hasBaseResponse && (!this.hasBaseResponse || this.baseResponse_.Equals(iphoneRegResponse.baseResponse_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<IphoneRegResponse, IphoneRegResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
		}
		public static IphoneRegResponse ParseFrom(byte[] data)
		{
			return IphoneRegResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private IphoneRegResponse MakeReadOnly()
		{
			return this;
		}
		public static IphoneRegResponse.Builder CreateBuilder()
		{
			return new IphoneRegResponse.Builder();
		}
		public override IphoneRegResponse.Builder ToBuilder()
		{
			return IphoneRegResponse.CreateBuilder(this);
		}
		public override IphoneRegResponse.Builder CreateBuilderForType()
		{
			return new IphoneRegResponse.Builder();
		}
		public static IphoneRegResponse.Builder CreateBuilder(IphoneRegResponse prototype)
		{
			return new IphoneRegResponse.Builder(prototype);
		}
		static IphoneRegResponse()
		{
			IphoneRegResponse.defaultInstance = new IphoneRegResponse().MakeReadOnly();
			IphoneRegResponse._iphoneRegResponseFieldNames = new string[]
			{
				"BaseResponse"
			};
			IphoneRegResponse._iphoneRegResponseFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.IphoneRegResponse.Descriptor, null);
		}
	}
}
